<template>
  <div class="XLoading" v-show="loadingVisible">
    <article>
      <!-- <img :src="require('assets/img/loading.gif')" alt="" /> -->
      <div class="el_load">
        <i class="el-icon-loading"></i>
      </div>
      <P>{{ LoadingText }}</P>
    </article>
  </div>
</template>

<script>
export default {
  name: "XLoading",
  props: {},
  data() {
    return {};
  },
  created() {},
  activated() {},
  computed: {
    LoadingText() {
      return this.$store.state.XLoading.loadingText;
    },
    loadingVisible() {
      return this.$store.state.XLoading.loading;
    },
    loadingBackground() {
      return this.$store.state.XLoading.background;
    },
  },
  methods: {},
  watch: {},
};
</script>

<style lang="scss" scoped>
@import "./style.scss";
</style>
